// 站点半径区域内修改格点数据值Demo
function main() { 
    //当前预报时刻数据
    let currentDs = pe.Dataset("CMA/TMAX/B001",202405260800) ;
    //10小时预报数据
    let hours10Ds = pe.Dataset("CMA/TMAX/B010",202405260800) ;
    
    let pointsGeom =pe.geomById("points.geojson") ;
    let pointsBuffGeom = pointsGeom.buffer(0.12) ; // 构建缓冲区多边形，半径12公里=0.12度
    
    let emptyDs = pe.NewDataset(3 ,256,256,1,0);// 3表示Int16 构建一个空数据集
    let newDataDs = emptyDs.burn( pointsBuffGeom , 9999 ); // 将站点缓冲区写入 9999 测试值
    
    let resultDs = currentDs.add( newDataDs , 0, 32000, -9999 );
    //如果要对10小时预报进行改写使用下面语句
    //let resultDs2 = hours10Ds.add( newDataDs , 0, 32000, -9999 );
    
    return resultDs;
}